//
//  Primer_Float_DemoVC.swift
//  APSwift
//
//  Created by jianbo.pei on 2022/3/7.
//

import UIKit

class Primer_Float_DemoVC: UIViewController {

    override func viewDidLoad() {
        super.viewDidLoad()

        // Do any additional setup after loading the view.
        magnitudeTest()
    }
    
    private func magnitudeTest() {
        let x: Float = -200
        print("x.type is \(type(of: x)) \nx.magnitude is \(x.magnitude)")
        
        let x1 = abs(-200)
        print("x1.magnitude is \(x1.magnitude)")

        
        let y = 200
        print("y.magnitude is \(y.magnitude)")
    }

}
